var cpvw_Prefs={prefPreviewSize:"preview.size",prefPreviewEnable:"preview.enable",prefPreviewPrefetch:"preview.prefetch",prefPreviewEmailFrom:"preview.emailfrom",prefPreviewEmailTo:"preview.emailto",prefPreviewDefaultEnable:"preview.defaultenable",prefPreviewUserEmail:"preview.useremail",prefPreviewDebug:"preview.debug",prefPreviewIsNew:"preview.isnew",prefPreviewOpenMode:"preview.previewopenmode",prefPreviewOpenDelay:"preview.previewopendelay",prefMouseIconDelay:"preview.mouseIconDelay",prefPreviewOnIconDelay:"preview.previewOnIconDelay",prefHidePreviewDelay:"preview.hidePreviewDelay",prefPreviewLoc:"preview.location",prefPreviewFixedLoc:"preview.fixedlocation",prefFixedIcon:"preview.fixedMouseoverIcon",prefCMenuItems:"preview.contextMenuItems",prefTextZoom:"preview.textZoom",prefTheme:"preview.theme",prefGUID:"preview.GUID",prefTimestamp:"preview.timestamp",prefCount:"preview.previewcount",prefPiclensFilterSize:"preview.piclensFilterSize",prefInstallTS:"preview.install_timestamp",prefLastUpdateTS:"preview.last_update_timestamp",prefInlineSubsearch:"preview.inlineSubsearch",prefSubsearchBar:"preview.subsearchBar",prefAdId:"preview.adId",prefUserType:"preview.userType",prefAdPingInterval:"preview.adPingInterval",prefAdUpdateTime:"preview.adUpdateTime",prefAdPrefJson:"preview.adPrefJson",prefShowHelperFrame:"preview.showHelperFrame",prefLock:"preview.lock",prefQuickSearch:"preview.quickSearchPreferences",jsonPrefCooliris:"preview.cooliris",jsonPrefZoom:"preview.zoom",populatePreviewBarDropDown:function(_5){
while(cpvw_get("cpvw_bar_sites",_5).length>0){
cpvw_get("cpvw_bar_sites",_5).remove(0);
}
var _6=cpvw_prefHandler.getPref(cpvw_Prefs.prefCMenuItems);
_18="Default Enable is now Off. This means that Cooliris Previews will now work only on the sites \n selected by Cooliris along with the ones that you have enabled explicitly";
_18="Default Enable is now On. This means that Cooliris Previews will now work for all sites \n on the world wide web except for the ones you have disabled explicitly.";
var cpvw_prefHandler={prefs:Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch),isExists:function(_86){
case Components.interfaces.nsIPrefBranch.PREF_STRING:
return this.prefs.getCharPref(_88).toString();
case Components.interfaces.nsIPrefBranch.PREF_BOOL:
return this.prefs.getBoolPref(_88);
case Components.interfaces.nsIPrefBranch.PREF_INT:
return this.prefs.getIntPref(_88);
}
}
catch(ex){
return null;
}
},setPref:function(_8a,_8b){
try{
var _8c=this.prefs.getPrefType(_8a);
switch(_8c){
case 0:
if(typeof (_8b)=="string"){
this.prefs.setCharPref(_8a,_8b);
}else{
if(typeof (_8b)=="number"){
this.prefs.setIntPref(_8a,_8b);
}else{
if(typeof (_8b)=="boolean"){
this.prefs.setBoolPref(_8a,_8b);
}
}
}
break;
case Components.interfaces.nsIPrefBranch.PREF_STRING:
this.prefs.setCharPref(_8a,_8b);
break;
case Components.interfaces.nsIPrefBranch.PREF_BOOL:
this.prefs.setBoolPref(_8a,_8b);
break;
case Components.interfaces.nsIPrefBranch.PREF_INT:
this.prefs.setIntPref(_8a,_8b);
break;
}
}
catch(ex){
return null;
}
},getPrefJson:function(_8d){
try{
var _8e=this.prefs.getCharPref(_8d).toString();
return cpvw_jsUtils.decodeJson(_8e);
}
catch(ex){
return null;
}
},setPrefJson:function(_8f,obj){
try{
var _91=cpvw_jsUtils.encodeJson(obj);
this.prefs.setCharPref(_8f,_91);
}
catch(ex){
return null;
}
},setPrefIfNotExists:function(_92,_93){
var _94=this.prefs;
try{
if(!this.isExists(_92)){
var _95=typeof (_93);
switch(_95){
case "string":
this.prefs.setCharPref(_92,_93);
break;
case "boolean":
this.prefs.setBoolPref(_92,_93);
break;
case "number":
this.prefs.setIntPref(_92,_93);
break;
}
}
}
catch(ex){
conDump(ex+", "+_92+"."+_93);
}
},getComplexValue:function(_96,_97){
return this.prefs.getComplexValue(_96,_97);
},setComplexValue:function(_98,_99,_9a){
this.prefs.setComplexValue(_98,_99,_9a);
},removeAllPrefs:function(){
this.prefs.deleteBranch("preview.");
}};
}
if(typeof cpvw_jsUtils=="undefined"){
var cpvw_jsUtils={setPosition:function(obj,_9c,top,_9e,_9f,_a0){
if(typeof obj=="string"){
obj=document.getElementById(obj);
}
var str="";
if(_9c){
str+="left:"+_9c+"px;";
}
if(top){
str+="top:"+top+"px;";
}
if(_9e){
str+="width:"+_9e+"px;";
}
if(_9f){
str+="height:"+_9f+"px;";
}
if(obj){
if(_a0){
if(_9c){
obj.style.left=_9c+"px";
}
if(top){
obj.style.top=top+"px";
}
if(_9e){
obj.style.width=_9e+"px";
}
if(_9f){
obj.style.height=_9f+"px";
}
}else{
obj.setAttribute("style",str);
}
}
},isFF2:function(){
var _a2=Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo);
var _a3=Components.classes["@mozilla.org/xpcom/version-comparator;1"].getService(Components.interfaces.nsIVersionComparator);
return (_a3.compare(_a2.version,"3.0")<0);
},SetLocalSystemPath:function(_a4){
var _a5=Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("Home",Components.interfaces.nsIFile);
var cpvw_contextSitesTreeView={treeBox:null,selection:null,arrSites:[],arrCMenuItems:null,jsContextSiteFile:"CoolirisPreviewContextSites.js",getRowCount:function(){
var cpvw_contextSitesTreeViewSelected={treeBox:null,selection:null,arrSites:[],arrCMenuItems:null,jsContextSiteFile:"CoolirisPreviewContextSites.js",getRowCount:function(){